tools/libs/evtchn: decouple more from mini-os
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:23:44 +0000 (09:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 14:58:28 +0000 (14:58 +0000)
commit93753cecc8830c22ad522ccb29724ef3a5decdc4
treee1840319ca4e8963c69f55e174fa4d7a21e433d3
parentaa61568ac6f56d53012dc44edc9aedd34962f66d
tools/libs/evtchn: decouple more from mini-os

Mini-OS and libevtchn are using implementation details of each other.
Change that by letting libevtchn use the new alloc_file_type() and
get_file_from_fd() function and the generic dev pointer of struct file
from Mini-OS.

By using private struct declarations Mini-OS will be able to drop the
libevtchn specific definitions of struct evtchn_port_info and
evtchn_port_list in future. While at it use bool for "pending" and
"bound".

Switch to use xce as function parameter instead of fd where possible.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/evtchn/minios.c